package com.vpen.block.task;

import com.vpen.block.queue.PlanBuff;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @version: 1.0
 * @author: Vpen
 * @date: 2021/11/21 19:37
 * @content:
 */
@Data
@Slf4j
@Component
@Accessors(chain = true)
class ConsumerPlan2 implements Runnable{
    private PlanBuff planBuff;
    @Override
    public void run() {
        try {
            planBuff.consumerPlan();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
